package com.itheima.day03.test2;

public class Test2 {
    public static void main(String[] args) {
        Computer computer=new Computer();
        computer.start();

        computer.useUSB(new USB() {
            @Override
            public void open() {
                System.out.println("鼠标打开....");
            }

            @Override
            public void close() {
                System.out.println("鼠标关闭...");
            }
        });

        computer.stop();
    }
}
